<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../assets/css/font-awesome.min.css">
<!--[if IE 7]>
  <link rel="stylesheet" href="../assets/css/font-awesome-ie7.min.css"/>
  <![endif]-->
  <link href="../assets/css/bootstrap.min.css" rel="stylesheet" />
  <link rel="stylesheet" href="../assets/css/ace.min.css" />
  <link rel="stylesheet" href="../css/style.css"/>
<title>用户详情展示</title>
</head>

<body>
<div class="page-content">
 <div class="Inquiry_info Order_Details_style">
  <div class="Manager_style">
   <span class="title_name">用户详情展示</span>
   <div class="Rankings_style">
    <table class="table table-striped table-bordered table-hover">
     <thead>
      <tr>
      <th width="">用户编号</th>
      <th width="">用户昵称</th>
      <th width="">年龄</th>
      <th width="">性别</th>
      <th width="">照片</th>
      <th width="">简述</th>
      <th width="">操作</th>

      </tr>
     </thead>
     <tbody>
      <tr>
      <td><a href="javascript:ovid(0)" class="gys_xinxi">供应商A</td>
      <td>刘怀帮</td>
      <td>135040564333</td>
      <td>135040564333</td>
      <td>135040564333</td>
      <td>135040564333</td>
      <td><a type="button" class="btn btn-warning File_Scan" href="javascript:ovid(0)">浏览</a></td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
   <div class="widget-body clearfix">
    <div class="widget-main clearfix">
        <input multiple type="file" id="id-input-file-3" />
        <!--<label>
            <input type="checkbox" name="file-format" id="id-file-format" class="ace" />
            <span class="lbl"> 只允许图片</span>
        </label>-->
        <button type="button" class="btn Upload_btn">上传文件</button>
    </div>
</div>
  <div class="center"><a href="" class="btn btn-warning print_btn">确定</a><a class=" btn  btn-info" href="javascript :;" onClick="javascript :history.back(-1);">取消</a></div>
 </div>
</div>

<!--打印订单样式-->
<div id="print_style" class="" style=" display:none">
<!--[if !IE]> -->
		<script src="../assets/js/jquery.min.js"></script>
		<!-- <![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='../assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script src="../assets/layer/layer.js" type="text/javascript"></script>
<script src="../assets/js/ace-elements.min.js"></script>
<script src="../assets/js/ace.min.js"></script>
<script type="text/javascript">
//订单打印
$('.print_btn').on('click', function(){
    layer.open({
        type: 1,
        title: '确认打印订单',
        maxmin: true,
        shadeClose: true, //点击遮罩关闭层
        area : ['850px' , ''],
        content: $('#print_style'),
		btn:['确认','取消'],
		yes:function(index,layero){
			  layer.alert('已提交打印信息,订单开始打印!',{
              title: '提示框',
				icon:1,

			 });
			 layer.close(index);
			}
    });
});

		$('#id-input-file-3').ace_file_input({
					style:'well',
					btn_choose:'请选择你要上传的文件',
					btn_change:null,
					no_icon:'icon-cloud-upload',
					droppable:true,
					thumbnail:'small'//large | fit
					,icon_remove:null//set null, to hide remove/reset button
					/**,before_change:function(files, dropped) {
						//Check an example below
						//or examples/file-upload.html
						return true;
					}*/
					/**,before_remove : function() {
						return true;
					}*/
					,
					preview_error : function(filename, error_code) {
						//name of the file that failed
						//error_code values
						//1 = 'FILE_LOAD_FAILED',
						//2 = 'IMAGE_LOAD_FAILED',
						//3 = 'THUMBNAIL_FAILED'
						//alert(error_code);
					}

				}).on('change', function(){
					//console.log($(this).data('ace_input_files'));
					//console.log($(this).data('ace_input_method'));
				});
				//图片上传事件
				$('#id-file-format').removeAttr('checked').on('change', function() {
					var before_change
					var btn_choose
					var no_icon
					if(this.checked) {
						btn_choose = "请选择上传的图片地址";
						no_icon = "icon-picture";
						before_change = function(files, dropped) {
							var allowed_files = [];
							for(var i = 0 ; i < files.length; i++) {
								var file = files[i];
								if(typeof file === "string") {
									//IE8 and browsers that don't support File Object
									if(! (/\.(jpe?g|png|gif|bmp)$/i).test(file) ) return false;
									//alert('请选择正确的图片 ' + btn_choose);
								}
								else {
									var type = $.trim(file.type);
									if( ( type.length > 0 && ! (/^image\/(jpe?g|png|gif|bmp)$/i).test(type) )
											|| ( type.length == 0 && ! (/\.(jpe?g|png|gif|bmp)$/i).test(file.name) )//for android's default browser which gives an empty string for file.type
										) continue;//not an image so don't keep this file

								}

								allowed_files.push(file);
							}
							if(allowed_files.length == 0) return false;

							return allowed_files;

						}

					}
					else {
						btn_choose = "请选择上传的文件地址";
						no_icon = "icon-cloud-upload";
						before_change = function(files, dropped) {
							return files;
						}
					}

					var file_input = $('#id-input-file-3');
					file_input.ace_file_input('update_settings', {'before_change':before_change, 'btn_choose': btn_choose, 'no_icon':no_icon})
					file_input.ace_file_input('reset_input');
				});
</script>
</body>
</html>
